import React,{lazy} from 'react'
import { createBrowserRouter } from 'react-router-dom'
const Order=lazy(()=>import('../Page/Order'))
const Pay=lazy(()=>import('../Page/Pay'))
const PayList=lazy(()=>import('../Page/PayList'))
const Detail=lazy(()=>import('../Page/Detail'))
const List=lazy(()=>import('../Page/List'))
export  const router=createBrowserRouter( [
  {path:'/order',element:<Order/>},
  {path:'/pay',element:<Pay/>},
  {path:'/paylist',element:<PayList/>},
  {path:'/detail',element:<Detail/>},
  {path:'/',element:<List/>}
])